﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DiseasesDataSrc" targetNamespace="http://tempuri.org/DiseasesDataSrc.xsd" xmlns:mstns="http://tempuri.org/DiseasesDataSrc.xsd" xmlns="http://tempuri.org/DiseasesDataSrc.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="HMSIndiaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="HMSIndiaConnectionString (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Horizon.HMS.MySettings.GlobalReference.Default.HMSIndiaConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DiseasesMasterTableAdapter" GeneratorDataComponentClassName="DiseasesMasterTableAdapter" Name="DiseasesMaster" UserDataComponentName="DiseasesMasterTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="HMSIndiaConnectionString (MySettings)" DbObjectName="HMSIndia.dbo.DiseasesMaster" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DiseasesMaster] WHERE (([DID] = @Original_DID) AND ([Diseases] = @Original_Diseases))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Diseases" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Diseases" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DiseasesMaster] ([Diseases]) VALUES (@Diseases);
SELECT DID, Diseases FROM DiseasesMaster WHERE (DID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Diseases" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Diseases" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT DID, Diseases FROM dbo.DiseasesMaster</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DiseasesMaster] SET [Diseases] = @Diseases WHERE (([DID] = @Original_DID) AND ([Diseases] = @Original_Diseases));
SELECT DID, Diseases FROM DiseasesMaster WHERE (DID = @DID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Diseases" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Diseases" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Diseases" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Diseases" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="DID" ColumnName="DID" DataSourceName="HMSIndia.dbo.DiseasesMaster" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@DID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="DID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="DID" DataSetColumn="DID" />
              <Mapping SourceColumn="Diseases" DataSetColumn="Diseases" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DiseasesDataSrc" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DiseasesDataSrc" msprop:Generator_UserDSName="DiseasesDataSrc">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DiseasesMaster" msprop:Generator_TableClassName="DiseasesMasterDataTable" msprop:Generator_TableVarName="tableDiseasesMaster" msprop:Generator_TablePropName="DiseasesMaster" msprop:Generator_RowDeletingName="DiseasesMasterRowDeleting" msprop:Generator_RowChangingName="DiseasesMasterRowChanging" msprop:Generator_RowEvHandlerName="DiseasesMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="DiseasesMasterRowDeleted" msprop:Generator_UserTableName="DiseasesMaster" msprop:Generator_RowChangedName="DiseasesMasterRowChanged" msprop:Generator_RowEvArgName="DiseasesMasterRowChangeEvent" msprop:Generator_RowClassName="DiseasesMasterRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnDID" msprop:Generator_ColumnPropNameInRow="DID" msprop:Generator_ColumnPropNameInTable="DIDColumn" msprop:Generator_UserColumnName="DID" type="xs:int" />
              <xs:element name="Diseases" msprop:Generator_ColumnVarNameInTable="columnDiseases" msprop:Generator_ColumnPropNameInRow="Diseases" msprop:Generator_ColumnPropNameInTable="DiseasesColumn" msprop:Generator_UserColumnName="Diseases">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DiseasesMaster" />
      <xs:field xpath="mstns:DID" />
    </xs:unique>
  </xs:element>
</xs:schema>